//
//  BaseTableViewController.h
//  drawacartoon
//
//  Created by Ji Hu on 12-7-24.
//  Copyright (c) 2012年 爱辅导. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol BaseTableViewControllerDelegate <NSObject>

-(void)openDetailViewController:(UIViewController*)viewcontroller withObject:(id)object;

@end

@interface BaseTableViewController : UIViewController<UITableViewDataSource,UITableViewDelegate>

@property (nonatomic,retain) IBOutlet UITableView *tableView;
@property (nonatomic,retain) id<BaseTableViewControllerDelegate> delegate;
@property (nonatomic,retain) NSArray *tableViewDataArray;
@property (nonatomic,retain) UITableViewCell *emptyCell;
@property (nonatomic,retain) UIViewController *detailViewController;

-(void)loadListData:(id)params;
-(void) buildDetailViewController;
-(NSString*) buildEmptyString;
-(UITableViewCell *)basetableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;

@end
